/*
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
 * MA  02110-1301, USA.
 *
 * http://www.gnu.org/copyleft/gpl.html
 */
package com.aionemu.gameserver.model.team.league;

import com.aionemu.gameserver.model.Race;
import com.aionemu.gameserver.model.gameobjects.Npc;
import com.aionemu.gameserver.model.gameobjects.player.Player;
import com.aionemu.gameserver.model.team.Team;
import com.aionemu.gameserver.model.team.alliance.PlayerAlliance;
import com.aionemu.gameserver.model.team.group.LootGroupRules;
import com.aionemu.gameserver.model.team.interfaces.ITeamMember;

/**
 * @author Mr. Poke
 *
 */
public class League extends Team<PlayerAlliance> implements ITeamMember
{

	private LootGroupRules	lootGroupRules	= new LootGroupRules();
	
	/**
	 * @param inviter
	 * @param invited
	 */
	public static void invitePlayerToLeague(Player inviter, Player invited)
	{
	}

	/**
	 * @param teamId
	 * @param leader
	 */
	public League(int teamId, Integer leader)
	{
		super(teamId, leader);
	}

	/* (non-Javadoc)
	 * @see com.aionemu.gameserver.model.team.interfaces.ITeamMember#getReward(com.aionemu.gameserver.model.gameobjects.Npc)
	 */
	@Override
	public void getReward(Npc owner)
	{
	}

	/* (non-Javadoc)
	 * @see com.aionemu.gameserver.model.team.interfaces.ITeamMember#getRace()
	 */
	@Override
	public Race getRace()
	{
		return getLeader().getRace();
	}

	/* (non-Javadoc)
	 * @see com.aionemu.gameserver.model.team.Team#isFull()
	 */
	@Override
	public boolean isFull()
	{
		return members.size() == 8;
	}

	/* (non-Javadoc)
	 * @see com.aionemu.gameserver.model.team.Team#getLeader()
	 */
	@Override
	public PlayerAlliance getLeader()
	{
		return members.get(leader);
	}

	/* (non-Javadoc)
	 * @see com.aionemu.gameserver.model.team.Team#getMemberById(int)
	 */
	@Override
	public PlayerAlliance getMemberById(int id)
	{
		return members.get(id);
	}

	/* (non-Javadoc)
	 * @see com.aionemu.gameserver.model.team.Team#onMemberLogIn(int)
	 */
	@Override
	public void onMemberLogIn(int objectId)
	{
	}

	/* (non-Javadoc)
	 * @see com.aionemu.gameserver.model.gameobjects.AionObject#getName()
	 */
	@Override
	public String getName()
	{
		return null;
	}

	/**
	 * @return Returns the lootGroupRules.
	 */
	public LootGroupRules getLootGroupRules()
	{
		return lootGroupRules;
	}
}
